import {
  SUPPLIER_TYPE_SELECT_LIST,
} from '@/pages/supplier/constants/common'
import { getInitialFieldsValue } from '@/pages/supplier/utils'

// 供应商管理 - 线索供应商
const FORM_ITEM_LIST = [
  { prop: 'supplierCode', label: '供应商代码', type: 'input', },
  { prop: 'supplierName', label: '供应商名称', type: 'input', },
  { prop: 'mainCategoryId', label: '主营品类', type: 'categorySelect' },
  { prop: 'mainProduct', label: '主营商品', type: 'input', },
  { prop: 'manageCategoryId', label: '经营品类', type: 'categorySelect' },
  { prop: 'supplierTypeId', label: '供应商类型', type: 'select', clearable: true, options: SUPPLIER_TYPE_SELECT_LIST },
  { prop: 'belongDepartment', label: '供应商归属中心', type: 'select', clearable: true, dict: 233 },
  { prop: 'supplierManagerAreaId', label: '供应商管理区域', type: 'managementArea' },
  { prop: 'createUser', label: '创建人', type: 'input', },
  { prop: 'invoiceType', label: '发票类型', type: 'select', sysDict: 521 },
]
const INITIAL_FIELDS_VALUE = getInitialFieldsValue(FORM_ITEM_LIST)

export {
  INITIAL_FIELDS_VALUE,
  FORM_ITEM_LIST,
}
